<extend name="Base/common"/>
<block name="script">
<script>
    $('#tab_{$tab}').addClass('active');
</script>
</block>
<block name="body">
    <link type="text/css" rel="stylesheet" href="__CSS__/news.css"/>
    <div class="col-xs-12">
        {:W('Common/Adv/render',array(array('name'=>'index_top')))}
    </div>
    <div class="col-xs-9 margin-bottom-15">
    	<div class="group_tags group_types">
            <b>资讯分类：</b>
            <volist name="sub_menu.left" id="menu">
            	<if condition="!$menu['children']">
                <a id="tab_{$menu.tab}" href="{$menu.href}" class="ptype{$menu.li_class}">
                {$menu.title}
                </a>
                </if>
            </volist>
        </div>
    </div>
    <div class="col-xs-3">
    	<div class="group_btnwp">
			<a <if condition="is_login()">href="{:U('News/index/edit')}"<else />href="javascript:toast.error('登录后才能操作')"</if>>发布文章</a>
		</div>
    </div>
    <div class="clearfix visible-xs-block"></div>
    <div class="col-xs-12">
    	<div class="jzzx-list">
		<div class="head">
			<h2>教育资讯<span>/</span><small>Education info</small></h2>
		</div>
		<div class="body">
			<notempty name="list">               
			<ul>
				<volist name="list" id="data">
				<li>
					<div class="flag flag{$data.cate.sort}"><a href="{:U('News/Index/index',array('category'=>$data['category']))}" title="{$data.cate.title}">{$data.cate.title|getShortSp=2}</a></div>
					<div class="wrap">
						<div class="text">
							<h2><a title="{$data.title|text}" href="{:U('News/index/detail',array('id'=>$data['id']))}">{$data.title|getShortSp=10}</a></h2>
							<div class="desc">
								{$data.description|text|getShortSp=70}
							</div>
						</div>
						<div class="img">
							<a title="{$data.title|text}" href="{:U('News/index/detail',array('id'=>$data['id']))}">
                				<img alt="{$data.title|text}" src="{$data.cover|getThumbImageById=266,150}">
            				</a>
						</div>
					</div>
					<div class="meta">
						<h4>{$data.create_time|date='Y-m-d H:i:s',###}</h4>
						<dl>
							<dd><i class="iconfont ">&#xe607;</i> {$data.support_count}</dd>
							<dd><i class="iconfont ">&#xe631;</i> {$data.comment}</dd>
							<dd><i class="iconfont fs24" style="vertical-align: -4px;">&#xe63a;</i> {$data.view}</dd>
						</dl>
						
					</div>
				</li>
				</volist>
			</ul>
			<else/>
                <div style="font-size:3em;padding:2em 0;color: #ccc;text-align: center">该类型下没有资讯</div>
            </notempty>
		</div>
	</div>
	<div class="gb-pages pull-right">
		{:getPagination($totalCount,modC('NEWS_PAGE_NUM',20,'News'))}
	</div>
    </div>
    
</block>